﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YTCMS.Data
{
    public class YTContextInitializer : DropCreateDatabaseIfModelChanges<YTContext>
    {
        protected override void Seed(YTContext context)
        {
            //var roles = new List<Role>{
            //    new Role{RoleName = "Administrator"},
            //    new Role{RoleName = "User"}               
            //};
            //roles.ForEach(r => context.Roles.Add(r));
            //context.Categories.Add(new Category { Id =1, Name="test"});
        }
    }
}
